﻿namespace Mosquito.ViewModel.Collections.Tree {
    using System.Collections.Generic;

    public interface INode<TKeyPart, TNode>
        where TNode : INode<TKeyPart, TNode>
    {
        IEnumerable<TNode> Descendants { get; }

        IEnumerable<TNode> ImmediateChildren { get; }

        bool HasChildren { get; }
    }
}